package com.qf;

import com.qf.pojo.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class test {

    @Test
    public void test(){
        ApplicationContext al = new ClassPathXmlApplicationContext("applicationContext.xml");
        User user = al.getBean("user", User.class);
        System.out.println(user);

//        User user1 = al.getBean("user1", User.class);
//        System.out.println(user1);
    }
}
